package com.zlzxm.sorting.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zlzxm.sorting.R
import com.zlzxm.sorting.ui.adapter.entity.EntityIndexMenu

/**
 *
 *CREATE BY zlzxm ON 2022/8/20
 *
 */
class AdapterIndexMenu : BaseQuickAdapter<EntityIndexMenu,BaseViewHolder>(R.layout.item_index_menu){

    override fun convert(holder: BaseViewHolder, item: EntityIndexMenu) {

        holder.setImageResource(R.id.ivIcon,item.icon)
        holder.setText(R.id.tvMenu,item.title)

    }


}